/**
 * @author 黄波
 * 创建日期：2011Aug 31, 2011
 * TODO// N/A
 */
package com.platform.user.action;

import java.util.List;

import com.platform.pojo.UserGroup;
import com.platform.user.bo.UserBo;

//查询所有用户组信息
public class LoadGroupModuleAction extends UserSupport {

	private List<UserGroup> groups;
	private String nodeId;
	private String nodeText;
	/**
	 * @return the groups
	 */
	public List<UserGroup> getGroups() {
		return groups;
	}
	/**
	 * @param groups the groups to set
	 */
	public void setGroups(List<UserGroup> groups) {
		this.groups = groups;
	}
	/**
	 * @return the nodeId
	 */
	public String getNodeId() {
		return nodeId;
	}
	/**
	 * @param nodeId the nodeId to set
	 */
	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}
	/**
	 * @return the nodeText
	 */
	public String getNodeText() {
		return nodeText;
	}
	/**
	 * @param nodeText the nodeText to set
	 */
	public void setNodeText(String nodeText) {
		this.nodeText = nodeText;
	}
	@Override
	public String execute() throws Exception {
		UserBo bo = UserBo.getInstance();
		groups = bo.getGroups();
		nodeText = new String(nodeText.getBytes("iso-8859-1"), "utf-8");
		return SUCCESS;
	}
}
